﻿#ifndef UIPLAYMODEL_H
#define UIPLAYMODEL_H

#include "PlayerOnQMediaBL.h"
#include "UIModel/UIModelBase.h"
#include "qurl.h"
#include <QObject>

class UIPlayModel : public UIModelBase
{
    Q_OBJECT
public:
    explicit UIPlayModel(QObject *parent = nullptr);
    
    void setEngine(QP::PlayEngine type);
    
    QP::PlayEngine Engine();
    void setMedia(const QUrl& url);
    void Play();
    void Pause();
    void Stop();
    PlayerOnQMediaBL* getPlayer();//临时用，懒
    QP::PlaybackState state();
    void setVideoWidget(QObject *w);
};

#endif // UIPLAYMODEL_H
